import request from '@/utils/request';
import { UserRegisterParams } from './index';
import { FormDataType } from '@/pages/user/login';

export async function resetPwd(params: UserRegisterParams) {
  return request(AC_PATH + '/api/resetPwd', {
    method: 'POST',
    requestType: 'form',
    data: params,
  });
}

export async function verfiycode(params: FormDataType) {
  return request(AC_PATH + '/api/mobile/sms', {
    method: 'POST',
    requestType: 'form',
    data: params,
  });
}
